package Java.BlackHorse.Stream;

import java.util.stream.Stream;

public class StreamDemo4 {
    public static void main(String[] args) {
        //一堆零散的数据
        // 不能传递基本数据类型
        Stream.of(1,2,3,4,5).forEach(s -> System.out.println(s));
        Stream.of("a","b","c").forEach(s -> System.out.println(s));
    }
}
